package com.example.service.impl;

import com.example.entity.Visit;
import com.example.mapper.VisitMapper;
import com.example.result.CommonResult;
import com.example.service.VisitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VisitServiceImpl implements VisitService {
    @Autowired
    VisitMapper visitMapper;

    /**查询
     * @return
     */
    @Override
    public CommonResult getvisit() {
        List<Visit> list = visitMapper.getvisit();
        return CommonResult.ok(list);
    }
}
